package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Banner;

import java.util.Set;

public interface BannerService {

    /**
     * 列表查询
     * @param title             标题
     * @param status            状态 1开启 0关闭
     * @param pageNo
     * @param pageSize
     * @return
     */
    Result<IPage<Banner>> listPage(String title, Integer status, Integer pageNo, Integer pageSize);

    Result<Banner> getById(Integer id);

    Result add(Banner banner);

    Result updateById(Banner banner);

    Result deleteByIds(Set<Integer> ids);

}
